package com.centronix.domain;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the product_catagory database table.
 * 
 */
@Entity
@Table(name="product_catagory")
public class ProductCatagory implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int catagoryId;

	private String narrative;

	//bi-directional many-to-one association to ProductType
	@OneToMany(mappedBy="productCatagory")
	private List<ProductType> productTypes;

    public ProductCatagory() {
    }

	public int getCatagoryId() {
		return this.catagoryId;
	}

	public void setCatagoryId(int catagoryId) {
		this.catagoryId = catagoryId;
	}

	public String getNarrative() {
		return this.narrative;
	}

	public void setNarrative(String narrative) {
		this.narrative = narrative;
	}

	public List<ProductType> getProductTypes() {
		return this.productTypes;
	}

	public void setProductTypes(List<ProductType> productTypes) {
		this.productTypes = productTypes;
	}
	
}